import axios from "../server";

interface AddType {
  name: string;
  alias: string;
}
interface GetData {
  id: number;
}
// 获取文章分类列表
export const getArtDataList = () => axios.get("/ccc/my/cates");

// 新增文章分类
export const addArtData = (data: AddType) => axios.post("/ccc/my/addcates", data);

// 删除文章分类
export const deleteArtData = (data: GetData) => axios.post("/ccc/my/deletecate", data);

// 根据Id获取文章分类
export const getArtDataById = (data: GetData) => axios.post("/ccc/my/getDataById", data);

// 修改文章分类
export const updateCate = (data: GetData & AddType) => axios.post("/ccc/my/updateCate", data);
